import { createPinia } from 'pinia';
import persist from 'pinia-plugin-persistedstate';

const pinia = createPinia();
pinia.use(persist);

export default pinia;

// 导入和导出用户和计数器模块
// import { useUserStore } from './modules/user'; 
// export { useUserStore };
// import { useCountStore } from './modules/counter'; 
// export { useCountStore };

export * from './modules/user';
export * from './modules/counter';